@AccessControl.authorizationCheck: #NOT_REQUIRED
define hierarchy YPSM0010_H_FORM
  with parameters
    P_FormId : abap.char(10)
  as parent child hierarchy(
    source YPSM0010_I_MENU
    child to parent association _ParentMenu
    directory _PForm filter by
      FormId = $parameters.P_FormId
    start where
      ParentMenu is initial
    siblings order by
      MenuSeq
  )
{
  key FormId,
  key MenuId,
      ParentMenu,
      MenuName,
      MenuSeq

}
